package com.bjsxt.dao.impl;

import org.springframework.stereotype.Component;

import com.bjsxt.dao.UserDAO;
import com.bjsxt.model.User;

@Component("u")
public class UserDAOImpl implements UserDAO
{

	public void save(User user)
	{
		// Hibernate
		// JDBC
		// XML
		// NetWork
		System.out.println("user saved!");
//		int a = 1 / 0;
		try
		{
			throw new RuntimeException("runtime exception");
		}
		catch (Exception e)
		{
			System.out.println(e.getMessage());
		}
		finally
		{
			System.out.println("save finally");
		}
	}

}
